﻿using Hotfix;
using MyFramework.Lua;
using MyFramework.MVCLibrary;
using MyFramework.MVCLibrary.View;
using MyFramework.Network;
using UnityEngine;
using XLua;

[Hotfix]
public class GameLauncher : MonoBehaviour
{
    public bool enableLuaDebugger;

    private void Start()
    {
        // ViewManager.GetInstance().OpenView(ViewType.MainView);
        
        // LuaManager.GetInstance().Init(enableLuaDebugger);
        // LuaManager.GetInstance().DoLuaFile("LuaMain");

        var playerHandler = new PlayerHandler();
        var url = NetworkManager.GetInstance().Config.baseUrl;
        NetworkManager.GetInstance().Get(url, playerHandler);
    }
}